package org.aplikator.server.descriptor;

import java.util.Arrays;
import java.util.List;

import org.aplikator.client.data.ListItem;

public interface ListProvider<T> {

    List<ListItem<T>> getListValues();

    public static class Default<T> implements ListProvider<T>{

        private final List<ListItem<T>> values;

        public Default (ListItem<T>... items){
            values = Arrays.asList(items);
        }


        public Default (List<ListItem<T>> vals){
            values = vals;
        }

        public List<ListItem<T>> getListValues(){
            return values;
        }
    }



}
